﻿@model IEnumerable<TCC.CMFlow.Models.Usuario>

@{
    var _categoriaWorkflowID = Convert.ToInt32(ViewData["CategoriaWorkflowID"]);
    var _grupoAprovacaoID = Convert.ToInt32(ViewData["GrupoAprovacaoID"]);
}

<table class="table table-condensed">
    <tr>
        <th>
            Nome
        </th>
        <th>
            E-Mail
        </th>
        <th>
            Ação
        </th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Nome)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Email)
            </td>
            <td>
                <a data-modal="" class="btn" href="@Url.Action("RemoverUsuario", new { categoriaWorkflowID = _categoriaWorkflowID, grupoAprovacaoID = _grupoAprovacaoID, usuarioId = item.Id })" id="btnRemoverUsuario"><span class="glyphicon glyphicon-trash"></span></a>
            </td>
        </tr>
    }
</table>